<?php
	session_start();
	error_reporting(E_ALL | E_STRICT);
	ini_set('display errors', 1);
	date_default_timezone_set('Europe/London');
	$username ="";
	if(isset($_SESSION['username']))
	{
		$username = $_SESSION['username'];
	}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>-</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/1.css" type="text/css" media="screen,projection" />

<style type="text/css">
<!--
.mystyle {font-size: 3em}
.mystyle1 {font-size: 2em;font-weight: bold; padding:0px 0px 0px 50px; display:block;margin:10px 0px 0px 0}

.mystyle2 {font-size: 14px}

-->
</style>
</head>
 
<body>
<form action="processLogin.php" method="post" name="form1">
	<div id="wrapper1">
	
			<div id="wrapper2">
			<!----->
            <?php if(!isset($_SESSION['idUser'])){?>
            		<div id="header">
					
                    </div>
            		<div id="container">
                    	<p class="description">
					        <span class="mystyle">Administration's Site</span>					  
                        </p>
                        <div id="content1">	
                        	
                        	<table width="100%" style="position:relative" >
                            	<tr>
                                	<td colspan="2" align="left" valign="middle" height="50px"> 
                                     <img src="images/security_f2.png" style="float:left" />
                                    <span class="mystyle1"> Login </span>		 </td>
                                </tr>
                        		<tr>
                                	<td width="30%"><span class="mystyle2">User name: </span>
                                    </td>
                                    <td width="60%">
                                    	<input id="input10" type="text" name="tf_username" value="<?php echo $username?>">
                                    </td>
                                </tr>
                                <tr>
                                	<td><span class="mystyle2">Password:<span>
                                    </td>
                                    <td>
                                    	<input id="input10" type="password" name="tf_password" >
                                    </td>
                                </tr>
                                <tr align="center">
                                	<td colspan="2" height="50px">
                                    	<input id="input2"  type="submit" name="btn_login" value="  OK  ">
                                        <input id="input2" name="btn_cancel" type="submit" value="  Cancel  " >
                                    </td>
                                </tr>
                        	</table>
                        </div>
                    </div>
            <?php } else {
					echo '<script language="javascript">window.location.href="main.php"</script>';  
						}
			?>	 
	  </div>
	</div>
	
	<div id="footer">
					
							<p>Template design by <a href="http://www.sixshootermedia.com">Six Shooter Media</a>. Sponsor: <a href="http://www.yours4money.com" rel="nofollow">Casino</a>.<br />
								<!-- you can delete below here -->

								© All your copyright information here.</p><br /><br />

<!--

<script type="text/javascript"><!--
ch_client = "JayKoster";
ch_width = 728;
ch_height = 90;
ch_color_border = "#ffffff";
ch_color_bg = "#ffffff";
ch_color_title = "#333333";
ch_color_text = "#666666";
ch_non_contextual = 1;
ch_default_category = "460";
var ch_queries = new Array( );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
if ( ch_selected < ch_queries.length ) {
ch_query = ch_queries[ch_selected];
}
//--></script>
<script  src="http://scripts.chitika.net/eminimalls/mm.js" type="text/javascript">
</script> 
					-->

					</div>
</form>
</body>
</html>